This script will be executed every minute, or approximately so.
You can use this script to closely monitor something, or whatever, but be aware that if you do much, you could create a lot of overhead.
Attachments -- must be in the same folder/level as XTension :
This is the 'hook' in XTension which allows you to create your own verb 'handlers', or alter the 'handling' of existing XTension verbs.
If you are adept with AppleScript or Frontier, you can create functions which integrate other applications or peripherals, and thus your own custom interface to your home automation system.
Please see the articles and technotes on the shed.com website which offer help and insight into other uses for this special script.
Following is a simple example of just how you might create a pair of 'handlers' which would allow you to set and query a value of any type.
 
Note that when XTension saves the database, it always saves the current 'context' of the Attachments script. This is one way to create lists, values, text strings, reports etc which are 'outside' the current scope of XTension's capabilities...